import Vue from "vue";
import "./style/common.scss";
import "./style/var.scss";
import "./style/reset.css";
import "./style/scrollbar.scss";
import install from "@/config/index";
Vue.use(install)
import App from "./App";
import router from "./router/index";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
// 检查是否为缓存页面, 如果是缓存则刷新页面
const isCache = !document.getElementById("vue-lib-2");
console.log(isCache,'isCache')
Vue.config.productionTip = false;
if (!isCache) {
  window.location.href = window.location.href + "&" + Date.now();
} else {
new Vue({
  el: "#app",
  render: (h) => h(App),
  router,
});
}


